package com.xjtu.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@ApiModel(value = "CallRecord", description = "通话记录")
public class Call {
    @ApiModelProperty(value = "自增主键", dataType = "int", example = "1")
    private int id;

    @ApiModelProperty(value = "呼叫用户", dataType = "User", example = "1")
    private User from;

    @ApiModelProperty(value = "被呼用户", dataType = "User", example = "2")
    private User to;

    @ApiModelProperty(value = "挂断用户", dataType = "User", example = "1")
    private User hangup;

    @ApiModelProperty(value = "开始时间", dataType = "String", example = "2021-11-12 11:27:39")
    private String begin;

    @ApiModelProperty(value = "结束时间", dataType = "String", example = "2021-11-12 11:27:39")
    private String end;

    @ApiModelProperty(value = "通话秒数", dataType = "int", example = "10")
    private int duration;
}
